package com.sxt.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class User {
    //用户ID
    private  Integer id;
    //登录名
    private  String username;
    //登陆密码
    private  String password;
    //真实姓名
    private String realname;
    //角色 1 管理员 2 业务员
    private  Integer role;
    //状态 1 在职 2 离职
    private  Integer deleted;
    //用户头像
    private String img;
    //创建时间
    @JSONField(format = "yyyy-MM-dd")
    private Date createTime;
    //修改时间
    private Date modifyTime;
    //删除时间
    @JSONField(format = "yyyy-MM-dd")
    private  Date deletedTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(Date deletedTime) {
        this.deletedTime = deletedTime;
    }
}
